-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: Removed unreached else block GH33478 #35086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLN: Removed unreached else block GH33478 #35086
Conversation
Unreached else block in method _wrap_applied_output was removed. Local tests passed before and after change.
@@ -1373,10 +1373,6 @@ def _wrap_applied_output(self, keys, values, not_indexed_same=False): | |||
# of columns | |||
return self.obj._constructor_sliced(values, index=key_index) | |||
|
|||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @FollowTheProcess - while you're here, can you change the elif
in line 1221 to else
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry yep, will do this and the xref now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's now done :) Thanks for helping me contribute (in an albeit microscopic way) the contributing docs made it super easy as a newbie. I hope to be able to contribute more as I learn more.
Can you change "closes" to "xref"? |
Related to previous removal of unreached else block. Removal left an out of place elif, replaced with else. Local tests pass before/after
The |
Oh, weird! I ran the full test suite (test_fast.sh) before committing and no failures for me either. Let me know if you need me to do anything else |
thanks @FollowTheProcess |
Thanks both for the help. I hope to contribute more in the future! |
Unreached else block in method _wrap_applied_output was removed.
Local tests passed before and after change
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff